package com.celinux.ce.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author cxb
 * @date 2019-07-25 14:09
 */
@TableName("sys_user")
@Data
@Accessors(chain = true)
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户主键(用户ID)
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户名称
     */
    private String username;
    /**
     * 用户密码
     */
    private String password;

    /**
     * 图片
     */
    private String image;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
